package cn.tedu.csmall.product.util;

import org.springframework.stereotype.Component;

import java.util.Random;

/**
 * csmall-server-jh
 * <p>
 * 用来生成SPU和SKU ID的工具类
 *
 * @author: 姜衡
 * @create: 2024-09-26 16:37
 **/
@Component
public class IdUtils {

    public long generateSpuId(){
        return new Random().nextInt(10000);
    }
}
